package com.ican.oc.dao;

import org.springframework.stereotype.Repository;

import com.ican.oc.common.hibernate.OcHibernateDao;
import com.ican.oc.domain.OcProduct;

@Repository("ocProductDao")
public class OcProductDao extends OcHibernateDao<OcProduct, Integer> {

    public void updateOcProductMainImage(Integer productId, String image){
        String hql = "update OcProduct set image = '" + image + "' where productId = " + productId;
        this.batchExecute(hql);
    }
    
}
